// pages/tabs/tab3/tab3.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    inputMSG:'数据中 的内容',
    concatList:[
      {name:'张飞',age:18,birthday:'1985-01-05',fav:["足球","篮球","羽毛球"]},
      {name:'刘备',age:52,birthday:'1995-01-05',fav:["篮球","羽毛球"]},
      {name:'诸葛亮',age:95,birthday:'1975-01-05',fav:["电竞","篮球","羽毛球"]},
      {name:'赵云',age:32,birthday:'1955-01-05',fav:["游泳","篮球","羽毛球"]},
      {name:'关羽',age:18,birthday:'1935-01-05',fav:["网球","篮球","羽毛球"]}
    ]
  },
 
  handlerInput(event){
    // console.log("event",event);
    let {detail,target} = event;
    //keyCode代表本次输入的内容
    //value input的内容
    let {keyCode,value} = detail;
    let {num,age} = target.dataset;
    // console.log("keyCode",keyCode,"value",value,"num",num,"\tage",age);

    //获取数据  get
    //设置数据  set
    console.log("this.inputMSG",this.data.inputMSG);
    this.setData({
      inputMSG:value
    });


  },

  handlerTap(event){
    console.log("event",event)
    let {concat} = event.target.dataset;
    wx.showToast({
      title:'联系人姓名：'+concat.name,
      icon:'none'  
    });

    
  },


  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})